import { PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn } from "typeorm";

export abstract class BaseEntity {
  @PrimaryGeneratedColumn("uuid", { comment: "主键id" })
  id: number | string;

  @CreateDateColumn({ comment: "创建时间" })
  create_date: Date | string;

  @UpdateDateColumn({ nullable: true, comment: "更新时间" })
  update_date: Date | string;
}
